package com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.business.firefightingplan;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseService;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.utils.requestutil.HttpRequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class FirefightingplanService extends BaseService {

	private static final Logger logger = LoggerFactory.getLogger(FirefightingplanService.class);

	/**
	 * 楼栋分页列表
	 * @param
	 * @return
	 */
	public RespEntity floorListPage(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","floorListPage","firefightingplan");
	}
	/**
	 * 楼栋新增、编辑
	 * @param
	 * @return
	 */
	public RespEntity floorAddOrUpdate(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","floorAddOrUpdate","firefightingplan");
	}
	/**
	 * 楼栋删除
	 * @param
	 * @return
	 */
	public RespEntity floorDel(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","floorDel","firefightingplan");
	}
	/**
	 * 楼层分页列表
	 * @param
	 * @return
	 */
	public RespEntity storeyListPage(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","storeyListPage","firefightingplan");
	}
	/**
	 * 楼层详情
	 * @param
	 * @return
	 */
	public RespEntity storeyDetails(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","storeyDetails","firefightingplan");
	}
	/**
	 * 楼层新增、编辑
	 * @param
	 * @return
	 */
	public RespEntity storeyAddOrUpdate(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","storeyAddOrUpdate","firefightingplan");
	}
	/**
	 * 楼层删除
	 * @param
	 * @return
	 */
	public RespEntity storeyDel(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","storeyDel","firefightingplan");
	}
	/**
	 * 消防平面图列表
	 * @param
	 * @return
	 */
	public RespEntity firefightingplanListPage(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firefightingplanListPage","firefightingplan");
	}

	/**
	 * 消防平面图详情
	 * @param
	 * @return
	 */
	public RespEntity firefightingplanDetail(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firefightingplanDetail","firefightingplan");
	}

	/**
	 * 消防平面图新增
	 * @param
	 * @return
	 */
	public RespEntity firefightingplanAdd(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firefightingplanAdd","firefightingplan");
	}

	/**
	 * 消防平面图修改
	 * @param
	 * @return
	 */
	public RespEntity firefightingplanUpdate(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firefightingplanUpdate","firefightingplan");
	}

	/**
	 * 消防平面图删除
	 * @param
	 * @return
	 */
	public RespEntity firefightingplanDelete(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firefightingplanDelete","firefightingplan");
	}

}
